 /*
  *配置模块路径
  *暴露模块接口
  */
 requirejs.config({
     baseUrl: '/static/js',
     //urlArgs:'',
     //paths用于映射非baseUrl路径下的模块
     paths: {
         //模块名需要和jQuery文件中定义的amd模块名（jquery）一致
         jquery: [
             'https://cdn.bootcss.com/jquery/1.12.4/jquery.min',
             'https://lib.baomitu.com/jquery/1.12.4/jquery.min',
             'lib/jquery-2.1.1.min',
         ],
         'jquery.validate': [
             'https://cdn.bootcss.com/jquery-validate/1.17.0/jquery.validate.min'
         ],
         layer: [
             'https://cdn.bootcss.com/layer/3.1.0/layer',
             'lib/layer/layer'
         ],
         webuploader: [
             'https://lib.baomitu.com/lazyload/2.0.3/lazyload-min',
             'lib/webuploader/webuploader.min',
         ],
         echarts: [
             'https://cdn.bootcss.com/echarts/3.4.0/echarts.common.min',
             'https://lib.baomitu.com/echarts/3.4.0/echarts.common.min',
             'lib/echarts/echarts.common.min'
         ],
         player: 'lib/player/cyberplayer',
         'socket.io': [
             'https://cdn.bootcss.com/socket.io/1.7.3/socket.io.min',
             'https://lib.baomitu.com/socket.io/1.7.3/socket.io.min'
         ],
         share: 'component/share',
         slidePlayer: 'slideplayer',
         common: 'common/common',
         clipboard: [
             'https://cdn.bootcss.com/clipboard.js/1.6.1/clipboard.min',
             'https://lib.baomitu.com/clipboard.js/1.6.1/clipboard.min',
             'lib/clipboard.min'
         ],
         swiper: [
             'https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min',
             'https://lib.baomitu.com/Swiper/3.4.2/js/swiper.jquery.min'
         ],
         highlight: [
             'https://cdn.bootcss.com/highlight.js/9.10.0/highlight.min',
             'https://lib.baomitu.com/highlight.js/9.9.0/highlight.min'
         ],
         lazyload: [
             'lib/lazyload.min',
         ],
         'jquery.form': [
             'https://cdn.bootcss.com/jquery.form/4.1.0/jquery.form.min',
             'https://lib.baomitu.com/jquery.form/4.1.0/jquery.form.min'
         ],
         ace: [
             'https://cdn.bootcss.com/ace/1.2.6/ace.js',
             'https://lib.baomitu.com/ace/1.2.6/ace.js'
         ]
     },
     /**
      * 配置非AMD模块
      */
     shim: {
         'layer': {
             'exports': 'layer'
         },
         'common': {
             'exports': 'backTop'
         },
         'lazyload': {
             'exports': 'lazyload',
             'deps': ['jquery']
         },
         'validate': {
             'exports': 'validate',
             'deps': ['jquery']
         }
     }
 });
